<h1>Edit user info</h1>

<%= error_messages_for :user %>
<% form_for :user do |f| %>
<p><%= label_tag 'login' %><br/>
<%= f.text_field :login, :disabled => true %></p>

<p><%= label_tag 'name' %><br />
<%= f.text_field :name %></p>

<p><%= label_tag 'email' %><br/>
<%= f.text_field :email %></p>

<p><%= label_tag 'password' %><br/>
<%= f.password_field :password %></p>

<p><%= label_tag 'password_confirmation', 'Confirm Password' %><br/>
<%= f.password_field :password_confirmation %></p>

<p>
	<%= label_tag 'birthdate' %><br />
	<%= f.datetime_select(:birthdate, :discard_minute => true, :discard_hour => true, :order => [:month, :day, :year], :start_year => 1950) %>
</p>


<p><%= f.submit 'Update' %></p>
<% end %>
